package hcn.cmc.bean.request;

import java.io.Serializable;

public class HisPatientInformationRequest implements Serializable {
    private String organizationId;
    private String hisUrl;
    private String patientName;
    private String businessType;
    private String businessCode;



    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }


    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getHisUrl() {
        return hisUrl;
    }

    public void setHisUrl(String hisUrl) {
        this.hisUrl = hisUrl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        HisPatientInformationRequest that = (HisPatientInformationRequest) o;

        if (organizationId != null ? !organizationId.equals(that.organizationId) : that.organizationId != null)
            return false;
        if (hisUrl != null ? !hisUrl.equals(that.hisUrl) : that.hisUrl != null) return false;
        if (patientName != null ? !patientName.equals(that.patientName) : that.patientName != null) return false;
        if (businessType != null ? !businessType.equals(that.businessType) : that.businessType != null) return false;
        return businessCode != null ? businessCode.equals(that.businessCode) : that.businessCode == null;
    }

    @Override
    public int hashCode() {
        int result = organizationId != null ? organizationId.hashCode() : 0;
        result = 31 * result + (hisUrl != null ? hisUrl.hashCode() : 0);
        result = 31 * result + (patientName != null ? patientName.hashCode() : 0);
        result = 31 * result + (businessType != null ? businessType.hashCode() : 0);
        result = 31 * result + (businessCode != null ? businessCode.hashCode() : 0);
        return result;
    }
}
